package cn.wolfcode.trip.base.domain;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Setter@Getter@ToString
public class User extends BaseDomain{
    private static final int GENDER_MALE=0;
    private static final int GENDER_FEMALE=1;
    private static final int GENDER_UNKNOW=-1;

    private static final int STATE_FANS=1; //关注
    private static final int STATE_CANCEL=0; //未关注

    private String email;

    private String nickName;

    private String password;

    private String place;

    private String headImgUrl;

    private int gender;

    private String coverImgUrl;


    private Integer attention; //关注人数

    private Integer fans; //粉丝数

    private Integer state;  //关注状态

    private String sign;

    private Integer hasRead=0;//未读消息数量

    public String getGenderName(){
        String genderName="保密";
        if (gender==GENDER_FEMALE) {
            genderName="女";
        }else if (gender==GENDER_MALE){
            genderName="男";
        }

        return genderName;
    }

}